import redis
from config import Config
def connect_redis():
    """
    :return: 创建redis链接对象,在防重放中用来存储nonce
    """
    return redis.Redis(**Config.REDIS_DB_URL)